package com.jt.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Cx
 * @stage JT Of Fourth stage
 * @creat 2020-11-27 14:16
 */
@Configuration /* 配置类 */
public class MybatisPlusConfig {

    /**
     * 将分页拦截器交给spring管理
     * @return PaginationInterceptor
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }

}
